//
//  CYLevel.m
//  UniversalApp
//
//  Created by 志刚杨 on 2018/2/3.
//  Copyright © 2018年 voidcat. All rights reserved.
//

#import "CYLevel.h"

@implementation CYLevel

-(void)getViewType:(NSString *)type AndLevel:(NSString *)level
{
//    QMUIGhostButton *levelView = [[QMUIGhostButton alloc] init];
    [self setImage:IMAGE_NAMED(@"mine_level_01") forState:UIControlStateNormal];
    
    if([type isEqualToString:@"0"])
    {
        
    }
    else if([type isEqualToString:@"1"])
    {
        [self setImage:IMAGE_NAMED(@"mine_level_01") forState:UIControlStateNormal];

    }
    else if([type isEqualToString:@"2"])
    {
        [self setImage:IMAGE_NAMED(@"mine_level_04") forState:UIControlStateNormal];
    }
    
    [self setTitle:level forState:UIControlStateNormal];
    self.spacingBetweenImageAndTitle = 1;
    [self setTintColor:MainColor];
    self.ghostColor = MainColor;
    self.contentEdgeInsets =  UIEdgeInsetsMake(2, 2, 2, 2);
    self.contentMode = UIViewContentModeScaleAspectFill;

}
@end
